package com.wnxy.controller;


import com.wnxy.dto.ManagerDetail;
import com.wnxy.dto.NavDto;
import com.wnxy.dto.Result;
import com.wnxy.service.RoleNavService;
import com.wnxy.vo.RoleNavVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author alice
 * @since 2021-11-12
 */
@RestController
@RequestMapping("/roleNav")
public class RoleNavController {
    @Autowired
    RoleNavService roleNavService;
    @PostMapping("/change")
    public Result change(@RequestBody RoleNavVo roleNavVo) throws IllegalAccessException {
      roleNavService.change(roleNavVo);
        return Result.getInstance().setFlag(true)
                .setStatusCode(200);
    }
}

